#!/usr/bin/env python3

import rospy
from DrRobotController_six_axes_can.msg import zero_force_pull
# import DrRobotController_six_axes as dr

def callback(data):
    import DrRobotController_six_axes as dr
    dr.zero_force_pull(id_num=data.id_num, pay_load=data.pay_load)
    rospy.loginfo("zero_force_pull_node")


def listener():
    rospy.init_node("zero_force_pull", anonymous=True)
    rospy.Subscriber("zero_force_pull", zero_force_pull, callback)
    rospy.spin()


if __name__ == '__main__':
    listener()

